#ifndef DIGITALSIGNATURE_H
#define DIGITALSIGNATURE_H

#include <QDialog>

namespace Ui {
class DigitalSignatureWidget;
}

class DigitalSignature : public QDialog
{
    Q_OBJECT

public:
    explicit DigitalSignature(const QString &userId, const QString &signingPurpose, QWidget *parent = nullptr);
    ~DigitalSignature();

    bool isSignatureValid() const;

private slots:
    void onVerifyClicked();

private:
    Ui::DigitalSignatureWidget *ui;
    QString m_userId;
    QString m_signingPurpose;
    bool m_signatureValid;

    bool validateInput();
};

#endif // DIGITALSIGNATURE_H